
old_price = float(input("请输入价格："))
rate = float(input("请输入折扣："))

def caculatePrice(price,rate):
    final_price = price * rate
    global old_price
    old_price = 30
    return final_price

new_price = caculatePrice(old_price,rate)
print("老价格：",old_price)
print("最终价格：",new_price)

